﻿using Newtonsoft.Json;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;
using static log4net.Appender.RollingFileAppender;

namespace VM.Entity.EntityMap.OAuth
{
    public class sys_refreshToken
    {
        #region Model
        private int _id;
        private string _guid;
        private string  _userid;
        private string _publickey;
        private string _refreshkey;
        private int? _longtimes;
        private long? _startdatetimes;
        private long? _enddatetimes;
        private long? _refreshdatetimes;
        private int? _clientid;
        private string _clientinfo;
        private string _description;
        private int? _createuserid;
        private DateTime? _createdate;
        private int? _updateuserid;
        private DateTime? _updatedate;
        /// <summary>
        /// 内码
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreInsert = true)]
        [JsonIgnore]
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// GUID
        /// </summary>
        public string GUID
        {
            set { _guid = value; }
            get { return _guid; }
        }
        /// <summary>
        /// 用户内码
        /// </summary>
        public string userId
        {
            set { _userid = value; }
            get { return _userid; }
        }
        /// <summary>
        /// 公钥
        /// </summary>
        public string publicKey
        {
            set { _publickey = value; }
            get { return _publickey; }
        }
        /// <summary>
        /// 私钥
        /// </summary>
        public string  privateKey { get; set; }


        /// <summary>
        /// 刷新秘钥
        /// </summary>
        public string refreshKey
        {
            set { _refreshkey = value; }
            get { return _refreshkey; }
        }
        /// <summary>
        /// 时长(秒级别)
        /// </summary>
        public int? longTimes
        {
            set { _longtimes = value; }
            get { return _longtimes; }
        }
        /// <summary>
        /// 起始时间
        /// </summary>
        public long? startDateTimes
        {
            set { _startdatetimes = value; }
            get { return _startdatetimes; }
        }
        /// <summary>
        /// 过期时间
        /// </summary>
        public long? endDateTimes
        {
            set { _enddatetimes = value; }
            get { return _enddatetimes; }
        }
        /// <summary>
        /// 最后更新时间时间
        /// </summary>
        public long? refreshDateTimes
        {
            set { _refreshdatetimes = value; }
            get { return _refreshdatetimes; }
        }
        /// <summary>
        /// 客户端内码
        /// </summary>
        public int? clientId
        {
            set { _clientid = value; }
            get { return _clientid; }
        }
        /// <summary>
        /// 客户端详情
        /// </summary>
        public string clientInfo
        {
            set { _clientinfo = value; }
            get { return _clientinfo; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string description
        {
            set { _description = value; }
            get { return _description; }
        }
        /// <summary>
        /// 创建人
        /// </summary>
        public int? createUserId
        {
            set { _createuserid = value; }
            get { return _createuserid; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? createDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        /// <summary>
        /// 最后欧更新人
        /// </summary>
        public int? updateUserId
        {
            set { _updateuserid = value; }
            get { return _updateuserid; }
        }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? updateDate
        {
            set { _updatedate = value; }
            get { return _updatedate; }
        }
        #endregion Model


    }
}
